package com.ruoyi.mine.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mine.mapper.MyReserveMapper;
import com.ruoyi.mine.domain.MyReserve;
import com.ruoyi.mine.service.IMyReserveService;

/**
 * 我的预约Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-25
 */
@Service
public class MyReserveServiceImpl implements IMyReserveService 
{
    @Autowired
    private MyReserveMapper myReserveMapper;

    /**
     * 查询我的预约
     * 
     * @param reserveId 我的预约主键
     * @return 我的预约
     */
    @Override
    public MyReserve selectMyReserveByReserveId(Long reserveId)
    {
        return myReserveMapper.selectMyReserveByReserveId(reserveId);
    }

    /**
     * 查询我的预约列表
     * 
     * @param myReserve 我的预约
     * @return 我的预约
     */
    @Override
    public List<MyReserve> selectMyReserveList(MyReserve myReserve)
    {
        return myReserveMapper.selectMyReserveList(myReserve);
    }

    /**
     * 新增我的预约
     * 
     * @param myReserve 我的预约
     * @return 结果
     */
    @Override
    public int insertMyReserve(MyReserve myReserve)
    {
        return myReserveMapper.insertMyReserve(myReserve);
    }

    /**
     * 修改我的预约
     * 
     * @param myReserve 我的预约
     * @return 结果
     */
    @Override
    public int updateMyReserve(MyReserve myReserve)
    {
        return myReserveMapper.updateMyReserve(myReserve);
    }

    /**
     * 批量删除我的预约
     * 
     * @param reserveIds 需要删除的我的预约主键
     * @return 结果
     */
    @Override
    public int deleteMyReserveByReserveIds(Long[] reserveIds)
    {
        return myReserveMapper.deleteMyReserveByReserveIds(reserveIds);
    }

    /**
     * 删除我的预约信息
     * 
     * @param reserveId 我的预约主键
     * @return 结果
     */
    @Override
    public int deleteMyReserveByReserveId(Long reserveId)
    {
        return myReserveMapper.deleteMyReserveByReserveId(reserveId);
    }
}
